package com.hsyt.pms.sys.dubbo.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.hsyt.pms.orm.sys.SysAuthIdentifyDao;
import com.hsyt.pms.sys.dubbo.SysAuthIdentifyService;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName: SysIdentifyServiceImpl
 * @Description: 权限业务层实现
 * @author wangze@hsyuntai.com
 * @date 2019年2月12日 下午2:45:51
 */
@Slf4j
@Component
@Service(version = "0.0.1", interfaceClass = SysAuthIdentifyService.class, registry = "pms", group = "pmsSystem", timeout = 3000)
public class SysIdentifyServiceImpl implements SysAuthIdentifyService {

    private static final Logger LOGGER = LoggerFactory.getLogger(SysIdentifyServiceImpl.class);

    @Resource
    private SysAuthIdentifyDao authIdentifyDao;

    @Override
    public List<String> getAuthByUserId(Long userId) {
        return authIdentifyDao.getAuthByUserId(userId);
    }

}
